﻿<Window x:Class="SPContentCreator.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
        Title="SPContentCreator" Height="471" Width="633" Loaded="Window_Loaded" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit" Icon="/SPContentCreator;component/Icons/Sharepoint_icon_64x.png">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="18*" />
            <ColumnDefinition Width="246*" />
            <ColumnDefinition Width="0*" />
            <ColumnDefinition Width="338*" />
            <ColumnDefinition Width="9" />
        </Grid.ColumnDefinitions>
        <GroupBox Header="Output" Height="86" Margin="6,340,0,0" Name="outputGroupBox" VerticalAlignment="Top" Grid.ColumnSpan="4" HorizontalAlignment="Left" Width="593">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="34*" />
                    <RowDefinition Height="0*" />
                    <RowDefinition Height="33*" />
                </Grid.RowDefinitions>
                <TextBox Height="67" Name="outputTextBox" VerticalAlignment="Top" IsReadOnly="False" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" HorizontalAlignment="Left" Width="575" Grid.RowSpan="3" />
            </Grid>
        </GroupBox>
        <TabControl Height="233" HorizontalAlignment="Left" Margin="12,78,0,0" Name="tabControl1" VerticalAlignment="Top" Width="587" Grid.ColumnSpan="4">
            <TabItem Header="Sites" Name="tabItem1" IsSelected="False" IsEnabled="False">
                <Grid>
                    <ListBox Height="134" HorizontalAlignment="Left" Margin="452,31,0,0" Name="availableSiteTemplatesListBox" VerticalAlignment="Top" Width="120" />
                    <Label Content="Available Templates" Height="28" HorizontalAlignment="Left" Margin="452,6,0,0" Name="label4" VerticalAlignment="Top" />
                    <TextBox Height="23" Margin="7,28,0,0" Name="numberOfSitesTextBox" VerticalAlignment="Top" HorizontalAlignment="Left" Width="57" TextChanged="numberOfSitesTextBox_TextChanged" Text="0" />
                    <Button Content="Create" Height="23" HorizontalAlignment="Left" Margin="498,171,0,0" Name="createSitesButton" VerticalAlignment="Top" Width="75" Click="CreateSitesButtonClick" />
                    <Label Content="# of Sites " Height="28" HorizontalAlignment="Left" Margin="7,6,0,0" Name="label5" VerticalAlignment="Top" />
                    <Label Content="Levels" Height="28" HorizontalAlignment="Left" Margin="7,57,0,0" Name="label6" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="7,79,0,0" Name="levelsTextBox" VerticalAlignment="Top" Width="57" Text="0" />
                    <CheckBox Height="16" HorizontalAlignment="Left" Margin="298,11,0,0" Name="checkBox1" VerticalAlignment="Top" Checked="checkBox1_Checked" Content="Use All Available Templates" />
                </Grid>
            </TabItem>
            <TabItem Header="Documents" Name="DocumentsTab" IsEnabled="True" IsSelected="True">
                <Grid>
                    <Label Content="Doc Libraries" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label7" VerticalAlignment="Top" />
                    <ListBox Height="164" HorizontalAlignment="Left" Margin="6,29,0,0" Name="documentLibrariesListBox" VerticalAlignment="Top" Width="154" SelectionChanged="listBox1_SelectionChanged" SelectionMode="Multiple" />
                    <Button Content="Create Documents" Height="23" HorizontalAlignment="Left" Margin="465,171,0,0" Name="createDocumentsButton" VerticalAlignment="Top" Width="106" Click="CreateDocumentsButtonClick" />
                    <Label Content="Number of Files" Height="28" HorizontalAlignment="Left" Margin="180,6,0,0" Name="label8" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="180,29,0,0" Name="numberOfFilesTextBox" VerticalAlignment="Top" Width="120" TextChanged="numberOfFilesTextBox_TextChanged" Text="" />
                    <TextBox Height="23" Margin="306,29,222,0" Name="fileSizeTexBox" VerticalAlignment="Top" TextChanged="textBox2_TextChanged" IsEnabled="True" Text="1" />
                    <Label Content="File Size" HorizontalAlignment="Left" Margin="306,6,0,166" Name="label9" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="361,28,0,0" Name="fileSizeUnitComboBox" VerticalAlignment="Top" Width="42" IsEnabled="True">
                        <ComboBoxItem Content="B" />
                        <ComboBoxItem Content="KB" IsSelected="True" />
                        <ComboBoxItem Content="MB" />
                    </ComboBox>
                    <Label Content="File Types" Height="28" HorizontalAlignment="Left" Margin="180,58,0,0" Name="label10" VerticalAlignment="Top" />
                    <Label Content="Modified File Date" Height="28" HorizontalAlignment="Left" Margin="409,6,0,0" Name="label11" VerticalAlignment="Top" />
                   
                    <CheckBox Content="Show Hidden" Height="16" HorizontalAlignment="Left" Margin="81,11,0,0" Name="showHiddenDocumentsListscheckBox" VerticalAlignment="Top" Unchecked="ShowHiddenLibrariesCheckBoxUnchecked" Checked="ShowHiddenLibrariesCheckBoxChecked" />
                    <ListBox Height="109" HorizontalAlignment="Left" Margin="180,84,0,0" Name="fileTypesListBox" VerticalAlignment="Top" Width="223">
                        
                    </ListBox>
                    <CheckBox Content="Use All Types" Height="16" HorizontalAlignment="Left" Margin="323,63,0,0" Name="useAllTypesCheckBox" VerticalAlignment="Top" Checked="UseAllTypesCheckBoxChecked" Unchecked="UseAllTypesCheckBoxUnchecked" />
                    <my:DatePicker HorizontalAlignment="Left" Margin="409,28,0,0" Name="fileDatePicker" VerticalAlignment="Top" Width="161" />
                    <CheckBox Content="Use Date Range" Height="16" HorizontalAlignment="Left" Margin="477,63,0,0" Name="dateRangeCheckBox" VerticalAlignment="Top" IsEnabled="True" Unchecked="DateRangeCheckBoxUnchecked" Checked="DateRangeCheckBoxChecked" />
                    <my:DatePicker HorizontalAlignment="Left" Margin="474,113,0,0" Name="endDatePicker" VerticalAlignment="Top" IsEnabled="True" />
                    <my:DatePicker HorizontalAlignment="Left" Margin="474,84,0,0" Name="startDatePicker" VerticalAlignment="Top" IsEnabled="True" Width="97">
                        <my:DatePicker.CalendarStyle>
                            <Style TargetType="toolkit:Calendar">
                                <Setter Property="Background" Value="White"></Setter>
                            </Style>
                        </my:DatePicker.CalendarStyle>
                    </my:DatePicker>

                    <Label Content="Start Date" Height="28" HorizontalAlignment="Left" Margin="410,87,0,0" Name="startDateLabel" VerticalAlignment="Top" IsEnabled="False" />
                    <Label Content="End Date" Height="28" HorizontalAlignment="Left" Margin="414,109,0,0" Name="endDateLabel" VerticalAlignment="Top" IsEnabled="False" />
                </Grid>
            </TabItem>
            <TabItem Header="List Items" Name="ListsTab" IsEnabled="True">
                <Grid>
                    <Label Content="Lists" Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label12" VerticalAlignment="Top" />
                    <ListBox Height="164" HorizontalAlignment="Left" Margin="6,29,0,0" Name="listsListBox" SelectionMode="Multiple" VerticalAlignment="Top" Width="154" />
                    <CheckBox Content="Show Hidden" Height="16" HorizontalAlignment="Left" Margin="81,11,0,0" Name="showHiddenListsCheckBox" VerticalAlignment="Top" Unchecked="ShowHiddenListsCheckBoxUnchecked" Checked="ShowHiddenListsCheckBoxChecked" />
                    <Button Content="Create Items" Height="23" HorizontalAlignment="Left" Margin="464,170,0,0" Name="createItemsButton" VerticalAlignment="Top" Width="106" Click="CreateListItemsClick" />
                    <Label Content="Number of Items" Height="28" HorizontalAlignment="Left" Margin="166,6,0,0" Name="label13" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="166,29,0,0" Name="numberOfListItemsTextBox" Text="" VerticalAlignment="Top" Width="93" />
                </Grid>
            </TabItem>
        </TabControl>
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="209,28,0,0" Name="methodComboBox" VerticalAlignment="Top" Width="126" Grid.Column="3" SelectionChanged="methodComboBox_SelectionChanged">
            <ComboBoxItem Content="SharePoint API" IsSelected="True" />
            <ComboBoxItem Content="Web Services" IsEnabled="False" />
        </ComboBox>
        <TextBox Height="23" HorizontalAlignment="Left" Margin="12,28,0,0" Name="usernameTextBox" VerticalAlignment="Top" Width="120" Grid.ColumnSpan="2" IsEnabled="False" />
        <Label Content="Username" Height="28" HorizontalAlignment="Left" Margin="12,7,0,0" Name="label1" VerticalAlignment="Top" Grid.ColumnSpan="2" />
        <TextBox Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="120,28,0,0" Name="passwordTextBox" VerticalAlignment="Top" Width="120" IsEnabled="False" />
        <Label Content="Password" Grid.Column="1" Margin="120,7,6,397" Name="label2" />
        <TextBox Grid.Column="3" Height="23" HorizontalAlignment="Right" Margin="0,28,164,0" Name="siteUrlTextBox" VerticalAlignment="Top" Width="174" />
        <Label Content="Site URL" Grid.Column="3" Height="28" HorizontalAlignment="Left" Margin="0,7,0,0" Name="label3" VerticalAlignment="Top" ClipToBounds="True" Width="174" />
        <Button Content="Load Site" Grid.Column="3" Height="23" HorizontalAlignment="Left" Margin="260,57,0,0" Name="loadSiteButton" Click="LoadSiteButtonClick" VerticalAlignment="Top" Width="75" />
        <Image Grid.Column="3" Height="22" HorizontalAlignment="Left" Margin="180,28,0,0" Name="statusImage" Stretch="Fill" VerticalAlignment="Top" Width="23" ImageFailed="image1_ImageFailed" Source="/SPContentCreator;component/Icons/warning.png" />
    </Grid>
</Window>
